import { HttpClient } from '../http-client';
import { HttpConfig } from '../http-config';

const prefix = HttpConfig.HttpPrefix;

console.log(prefix);

export default {
  newestImage: (params: Object): any => {
    return HttpClient.get(`${prefix}/picImageServer/image/newestImage`, params);
  },

  imageList: (params: Object): any => {
    return HttpClient.get(`${prefix}/picImageServer/image/list`, params);
  },

  hourList: (params: Object): any => {
    return HttpClient.get(`${prefix}/picImageServer/image/hourList`, params);
  },
};
